//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.example.starterdemo.demo.util;

public class SliceIdGenerator {
    private static final String INIT_STR = "aaaaaaaaa`";
    private int length = 0;
    private char[] ch;

    public SliceIdGenerator() {
        this.length = "aaaaaaaaa`".length();
        this.ch = "aaaaaaaaa`".toCharArray();
    }

    public String getNextSliceId() {
        int i = 0;

        for(int j = this.length - 1; i < this.length && j >= 0; ++i) {
            if (this.ch[j] != 'z') {
                ++this.ch[j];
                break;
            }

            this.ch[j] = 'a';
            --j;
        }

        return new String(this.ch);
    }
}
